﻿@{
    Layout = null;
}
@model Domain.Model.User

<!DOCTYPE html>
<html>
<head>
    <title>玉米客--餐饮服务专家</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <link href="~/Content/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Styles/login.css" rel="stylesheet" />
    <link href="~/Content/validBox/validBox.css" rel="stylesheet" />

    <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script src="~/Scripts/login.js"></script>
    <script src="~/Content/validBox/validBox.js"></script>
</head>
<body>
    <div class="header">
        <div class="logo"></div>
        <div class="head">
            <a href="/system/index"><i class="icon-user"></i>登录</a>
        </div>
    </div>

    <div class="body-content">
        <div class="login_head">账号注册</div>
        <div class="login_body">
            <div class="left">
                <img alt="" src="/images/forlogin.jpg" style="width: 366px; height: 224px;">
            </div>
            <div class="right">
                <form class="form-horizontal">
                    @Html.HiddenFor(item => item.ID)
                    <div class="control-group">
                        <label class="control-label" for="Account">账号</label>
                        <div class="controls">
                            @Html.TextBoxFor(item => item.Account, Html.ValidFor(item => item.Account))
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="Name">姓名</label>
                        <div class="controls">
                            @Html.TextBoxFor(item => item.Name, Html.ValidFor(item => item.Name))
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="TelPhone">电话</label>
                        <div class="controls">
                            @Html.TextBoxFor(item => item.TelPhone, Html.ValidFor(item => item.TelPhone))
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="Password">密码</label>
                        <div class="controls">
                            @Html.Password("Password", Model.Password, Html.ValidFor(item => item.Password))
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="RePassword">确认密码</label>
                        <div class="controls">
                            @Html.Password("RePassword", Model.Password, Html.Valid().Required().EqualTo("Password", "两次密码不一致").AsHtmlAttribute())
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="ValidCode">验证码</label>
                        <div class="controls">
                            @Html.TextBox("ValidCode", null, Html.Valid().Required().AsHtmlAttribute(new { style = "width: 108px;" }))                           
                            <button class="btn" onclick="sendValidCode(this);return false;">发送验证码</button>
                        </div>
                    </div>
                </form>
                <div class="message"></div>
                <div class="linear"></div>
                <div>
                    <button type="button" class="login btn btn-info" onclick="registy();">注册</button>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
